home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / tex / texmin / texmin_0.z / texmin_0 / usr / INSTALL next >
Encoding:
Text File  |  1993-05-12  |  3.1 KB  |  61 lines

  1. Unpack everything in /
  2.  
  3.   Because of the paths compiled in the binaries, this package MUST be
  4.   unpacked in /usr, or symbolic links have to be produced. Of course,
  5.   you can also set the right environment-variables, but beware, there are
  6.   a lot of them, and the intention of this package is just to provide a
  7.   plug-and-play solution to TeX-printing.
  8.  
  9. Add /usr/local/bin and /usr/TeX/bin to your PATH, if not already there.
  10.  
  11. Edit a few places to support your printer:
  12. (if you incidentally have a HP-Deskjet compatible with A4-paper inside,
  13.  known to your Linux-Box as /dev/lp1 -- as I do -- you may skip this step ;-)
  14.  1) First look up /usr/local/lib/ghostscript/doc/device.lst to find
  15.     your particular printer (or a compatible one). If it's not there
  16.     you're out of luck.
  17.  2) In /usr/local/bin/gspr change -sDEVICE=deskjet to
  18.     -sDEVICE='your device name found in step 1)'
  19.  3) In /usr/local/bin/gspr change -r300 to -r<res> or -r<xres>x<yres>
  20.     corresponding to the horizontal and vertical resolutions of your
  21.     printer in dots_per_inch.
  22.  4) In /usr/local/bin/gspr change -sPAPERSIZE=a4 to your papersize, if
  23.     yours is different (a list of known sizes can be found in
  24.     /usr/local/lib/ghostscript/doc/use.doc)
  25.  5) In /usr/local/bin/gspr change -sOutputFile=/dev/lp1 to the device
  26.     your printer is hooked up to. If you do not want to use a raw device,
  27.     but a spooler like lpr instead, read /usr/local/lib/ghostscript/doc/use.doc
  28.     to learn how to do that. Beware, Ghostscript may produces HUGE files,
  29.     It sends effectively a bitmap to the printer.
  30.  (Now Ghostscript is ready to go. If you have a Postscript file say foo.ps,
  31.   try gspr foo.ps and it should get printed.)
  32.  6) Look up the Metafont mode-description name of your printer in
  33.     /usr/TeX/lib/mf/macros/modes.mf. Look for a mode_def which has
  34.     a comment (everything from % to end of line is a comment) stating
  35.     the name of your printer. For HP Laserjet e.g you'll find CanonCX
  36.     as the appropriate mode name.
  37.     If you don't find one try at least one with the same horizontal and
  38.     vertical resolution as yours. The rest is not THAT much important.
  39.     Output may look sloppy but readable.
  40.  7) In /usr/TeX/lib/ps/config.ps change the Line D 300 to D <res>,
  41.     the resolution of your printer in dpi, or to
  42.     X <xres>
  43.     Y <yres>
  44.     (on two lines) if horizontal and vertical resolutions differ.
  45.  8) In /usr/TeX/lib/ps/config.ps add the line
  46.     M your_printer_mode
  47.     where your_printer_mode is the mode-description name for your printer
  48.     you looked up in step 6)
  49.  9) In /usr/TeX/lib/ps/config.ps change your Paper size information, if
  50.     youre not using A4, i.e. either comment out the A4size definition and
  51.     uncomment (=remove the starting stars) the letterSize definition,
  52.     if that's the right one, or comment out the A4size definition and
  53.     add your own in front, something like
  54.     @ myownSize hor_size ver_size
  55.     @+ %%PaperSize: myown
  56. 10) Make /usr/TeX/lib/tex/fonts/pk world writeable by issuing
  57.     chmod a+w /usr/TeX/lib/fonts/pk. That is necessary
  58.     to enable everyone to use the automatic font-generation feature.
  59.  
  60. Thats it.
  61.